var name = localStorage.getItem('name');

var pwd = localStorage.getItem('pwd');

function s() {
    var name1 = document.getElementById('name').value;
    var pwd1 = document.getElementById('pwd').value;
    if (name1 == name1 && pwd1 == pwd) {
        alert('登录成功');
   
        return true;
    } else {
        alert('用户名或密码错误');
        return false;
    }

}